﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Huioo.Learning.Agile.Payroll.Domain;

namespace Huioo.Learning.Agile.Payroll.Application
{
    public class ChangeHourlyTransaction : ChangeClassificationTransaction
    {
        private readonly double hourlyRate;
        public ChangeHourlyTransaction(int id, double hourlyRate    )
            : base(id)
        {
            this.hourlyRate = hourlyRate;
        }

        protected override PaymentClassification Classification =>
            new HourlyClassification(hourlyRate);

        protected override PaymentSchedule Schedule =>
            new WeeklySchedule();
    }
}
